﻿using System.IO;
using InterfaceWeaver.CustomTool;

namespace InterfaceWeaver.Bench
{
    class Program
    {
        static void Main(string[] args)
        {
            // This piece of code weave the interface from the file IWeaveTest.cs and publish the implementation into OutputTest.cs file
            var weavedStreamCode = Weaver.Weave(File.ReadAllText("IWeaveTest.cs"));
            File.WriteAllText("../../OutputTest.cs", weavedStreamCode.GenerateSourceCode());
        }
    }
}
